package com.qzd.Factory.abstractFactorypattern;

public class JavaCouresFactory extends CouresFactory {

    public INote createNote() {
        try {
            super.init(JavaCouse.class);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return new JavaNote();
    }

    public IVideo createVideo() {
        try {
            super.init(JavaCouse.class);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return new JavaVideo();
    }
}
